const app = getApp();
Page({
  data: {
    cndUrl: app.domainName,
    swiperA:[1,2,3,4,5,6,7,1,2,3,4,5],
    swiperB:[1,2,3,4,5,6,7],
    current:0,
    isX:'x',
    isTop:0,
    isShot:true,
    showAB:{a:'fadeIn animated',b:'hide'}
  },
  onLoad: function (options) {
     var that=this;
      setTimeout(function(){
       // that.setData({current:1});
      }, 4000);
      setTimeout(function(){
       // that.setData({current:2});
        console.log(1);
      }, 6000);
      console.log(app.screenHeight);
      if(app.screenHeight <  1350){
        that.setData({isX:''});
      }
      var _cha= app.screenHeight - 1520;
      if(_cha > 0){
        that.setData({isTop:_cha/2});
      }
  },
  showB:function(e){
    this.setData({showAB:{a:'hide',b:'fadeIn animated'}});
  },
  showmore:function(e){
    this.setData({isShot:false});
  },
  changS1: function(e){
      console.log(e);
      console.log(e.detail.current);
      this.setData({current:e.detail.current});
  },
  gonext: function(e){
    var _id=this.data.current;
    var _num=_id+1;
    if(_num > 6){return;}
    console.log(_num);
    this.setData({current:_num});
},
gopre: function(e){
  var _id=this.data.current;
  var _num=_id-1;
  if(_num < 0){return;}
  this.setData({current:_num});
},
  onShareAppMessage: function () {

  }
})